// JSON_Paser.cpp : Defines the entry point for the console application.
//

#include "JSONValue.h"
#include "JSONObject.h"
#include "JSONString.h"
#include "JSONArray.h"

#include <fstream>
#include <iostream>

int main(int argc, char* argv[])
{
	std::ifstream ifs("d:/twitter_streeam.txt");
	char c = ifs.get();

	JSONObject jsono;
	jsono.setData(ifs);
	//JSONArray *p = dynamic_cast<JSONArray *>(jsono.getData("results"));

	//for(int i = 0; i < p->getSize(); ++i){
	//	JSONObject * twitter = dynamic_cast<JSONObject *>(p->getData(i));
	//	JSONString * pString = dynamic_cast<JSONString *>(twitter->getData("from_user_id_str"));
	//	std::cout << pString->getData() << std::endl;
	//}


	return 0;
}

